<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue-2.4.0.js"></script>
</head>
<body>
    <div id="app">{{msg | msgFormat('疯狂666','123') | test}}</div>

    <script>

        Vue.filter('msgFormat',function (msg,arg,arg2) {
            return msg.replace(/单纯/g,arg+arg2)
        })
        Vue.filter('test',function (msg) {
            return msg+'========'
        })
        var vm=new Vue({
            el:'#app',
            data:{
                msg:'曾经，我也是一个单纯的少年，单纯的我，傻傻的问，谁是世界上最单纯的男人'
            },
            methods:{

            }
        })
    </script>
</body>
</html>